<html>
	<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
	<meta name="layout" content="main" />
	<title>User Login</title>
	</head>
<body>
	<div class="body">
		<table>
			<tr>
 				<td>
					<g:if test="${failedLogin}">
					   <g:message code="user.failedLogin.label" default="Log in incorrecto, intente nuevamente" />
					</g:if>
					<g:else>
					   <%-- show basic functions --%>
					</g:else>	 					
 				</td>
			</tr>
		</table>
		<g:form url="[action:'login',controller:'user']" method="post">
		<!-- 
 			<input id='dealId' type='hidden' name='dealId' value='${dealId}' />
			<input type="hidden" name="dealId" value='${dealId}' /> 	
			<g:hiddenField name="dealId" value="${dealId}" />		 
		 -->
			<div class="dialog">
				<p>Enter your login details below:</p>
				<table class="userForm">
					<tr class='prop'>
						<td valign='top' style='text-align:left;' width='20%'>
							<label for='email'>Email:</label>
						</td>
						<td valign='top' style='text-align:left;' width='80%'>
							<g:textField name="email" value="${user?.email}" />
						</td>
					</tr>
					<tr class='prop'>
						<td valign='top' style='text-align:left;' width='20%'>
							<label for='password'>Password:</label>
						</td>
						<td valign='top' style='text-align:left;' width='80%'>
							<g:textField name="password" value="${user?.password}" />
						</td>
					</tr>
				</table>
			</div>
			<div class="buttons">
				<span class="formButton">
					<input type="submit" value="Login"></input>
				</span>
			</div>
		</g:form>
	</div>
</body>
</html>